//
//  RegisterViewController.h
//  Gruphoto
//
//  Created by Thao Nguyen Huy on 1/3/13.
//  Copyright (c) 2013 CNC Software. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum {
    ButtonTagTakePicture = 0,
    ButtonTagChooseFromLibrary,
    ButtonTagCancel
}ActionSheetButtonTag;

@interface RegisterViewController : GruphotoViewController <UITextFieldDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate, UIActionSheetDelegate, ASIHTTPRequestDelegate, UIAlertViewDelegate> {
    UITextField *emailTextField;
    UITextField *passwordTextField;
    UITextField *firstNameTextField;
    UITextField *lastNameTextField;
    UITextField *phoneTextField;
    UILabel *descriptionLabel;
    UILabel *termsOfServiceLabel;
    UIButton *addPhotoButton;
    UIScrollView *registerScrollView;
    
    UIImage *avatar;
    
    AccountEditMode editMode;
}

@property (nonatomic, retain) IBOutlet UITextField *emailTextField;
@property (nonatomic, retain) IBOutlet UITextField *passwordTextField;
@property (nonatomic, retain) IBOutlet UITextField *firstNameTextField;
@property (nonatomic, retain) IBOutlet UITextField *lastNameTextField;
@property (nonatomic, retain) IBOutlet UITextField *phoneTextField;
@property (nonatomic, retain) IBOutlet UILabel *descriptionLabel;
@property (nonatomic, retain) IBOutlet UILabel *termsOfServiceLabel;
@property (nonatomic, retain) IBOutlet UIButton *addPhotoButton;
@property (nonatomic, retain) IBOutlet UIScrollView *registerScrollView;

@property (nonatomic, retain) UIImage *avatar;

@property (nonatomic, assign) AccountEditMode editMode;

// Action methods
- (IBAction)cancelButtonPressed:(id)sender;
- (IBAction)createButtonPressed:(id)sender;
- (IBAction)doneButtonPressed:(id)sender;
- (IBAction)addPhotoButtonPressed:(id)sender;
- (IBAction)showTermsOfService:(id)sender;

@end
